package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.bean.Base
import com.hb.trans.bean.NewDetail
import com.hb.trans.mvp.contract.NewDetailContract
import io.reactivex.Observable
import javax.inject.Inject

class NewDetailModel @Inject constructor(var api: EndPoints) : BaseModel(), NewDetailContract.Model {
    override fun getNewDetail(id: String): Observable<Base<NewDetail>> {
        return api.getNewDetail(id)
    }

}
